package com.example.flshtarvel.mapper;

import com.example.flshtarvel.entity.ArticleType;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ArticleTypeMapper {

    @Insert("insert into article_type(article_type_id,article_type_name) value(#{articleTypeId},#{articleTypeName})")
    public int insertArticleType(ArticleType articleType);

    @Select("select * from article_type")
    public List<ArticleType> selectAllArticleType();
}
